﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 调拨单字段的添加01 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<DateTime>(
                name: "BillDate",
                table: "T_ShippingOrderDetail",
                type: "datetime2",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<string>(
                name: "CustomCode",
                table: "T_ShippingOrderDetail",
                type: "nvarchar(30)",
                maxLength: 30,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SendAddress",
                table: "T_ShippingOrderDetail",
                type: "nvarchar(30)",
                maxLength: 30,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SendOrgan",
                table: "T_ShippingOrderDetail",
                type: "nvarchar(30)",
                maxLength: 30,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StockCode",
                table: "T_ShippingLockCell",
                type: "nvarchar(30)",
                maxLength: 30,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StockName",
                table: "T_ShippingLockCell",
                type: "nvarchar(30)",
                maxLength: 30,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SupplierCode",
                table: "T_ShippingLockCell",
                type: "nvarchar(30)",
                maxLength: 30,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SupplierName",
                table: "T_ShippingLockCell",
                type: "nvarchar(30)",
                maxLength: 30,
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BillDate",
                table: "T_ShippingOrderDetail");

            migrationBuilder.DropColumn(
                name: "CustomCode",
                table: "T_ShippingOrderDetail");

            migrationBuilder.DropColumn(
                name: "SendAddress",
                table: "T_ShippingOrderDetail");

            migrationBuilder.DropColumn(
                name: "SendOrgan",
                table: "T_ShippingOrderDetail");

            migrationBuilder.DropColumn(
                name: "StockCode",
                table: "T_ShippingLockCell");

            migrationBuilder.DropColumn(
                name: "StockName",
                table: "T_ShippingLockCell");

            migrationBuilder.DropColumn(
                name: "SupplierCode",
                table: "T_ShippingLockCell");

            migrationBuilder.DropColumn(
                name: "SupplierName",
                table: "T_ShippingLockCell");
        }
    }
}
